{% extends "../adminbase.html" %}

{% block content %}
	<H2>Edit Pages</H2>

	<div><a href="/editpage">New Page</a></div>
	<div>
    {% for Page in pages %}
      <div>
      <a href="/editpage?pagename={{Page.pagename}}">
        <b>{{Page.pagename}}</b>
      </a> 
      ({{Page.authoremail}}, {{Page.date}}) 
      <a href="/deletepage?pagename={{Page.pagename}}">delete</a>       
      </div>
    {% endfor %}
	</div>
	{% if needprev %}
	<div><a href="/editpages?amount={{amount}}&offset={{prevoffset}}">prev</div>
	{% endif %}
	{% if neednext %}
	<div><a href="/editpages?amount={{amount}}&offset={{nextoffset}}">next</div>
	{% endif %}
{% endblock %}
